package org.proxywars.engine.rts.commands;

import org.proxywars.engine.rts.ICommand;
import org.proxywars.engine.rts.IParty;

public abstract class AbstractCommand implements ICommand{

	private boolean canceled;
	private IParty owner;

	public IParty getOwner() {
		return owner;
	}

	@Override
	public void cancel() {
		canceled = true;
	}

	@Override
	public boolean isCanceled() {
		return canceled;
	}
	
	@Override
	public void setOwner(IParty owner) {
		this.owner = owner;
	}
}
